/**
 *@file server.js
 */

require('dotenv').config()

const express = require('express'),
    app = express(),
    passport = require('passport'),
    port = process.env.PORT || 3000

require('./config/express')(app, passport)
require('./config/passport')(passport)
require('./config/routes')(app, passport)

app.listen(port, function() {
    console.log(`app is listening on port ${port}`)
})
